package com.wali.modules.common.vo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.vo
 * @Description 备案商品信息VO类
 * @email wali.xu@kpmg.com
 * @date 09/03/2019 2:14 下午
 */
public class ComGoodsVO implements Serializable {

    /**
     * 客户id
     */
    private String userNo;

    /**
     * 商品序列号
     */
    private String serialNo;

    /**
     * 海关商品序编号
     */
    private String customerGoodsId;

    /**
     * 品名
     */
    private String goodsName;

    /**
     * 英文品名
     */
    private String goodsEnname;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 规格
     */
    private String specs;

    /**
     * 原产国
     */
    private String orginCountry;

    /**
     * 计量单位
     */
    private String unit;

    /**
     * 商品净重kg
     */
    private double goodsWeight;

    /**
     * 商品毛重kg
     */
    private double totalWeight;

    /**
     * 单价/公斤
     */
    private double pricekg;

    /**
     * 商品单价/货物的单价
     */
    private double priceGoods;

    /**
     * 商品币制
     */
    private String currency;

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getCustomerGoodsId() {
        return customerGoodsId;
    }

    public void setCustomerGoodsId(String customerGoodsId) {
        this.customerGoodsId = customerGoodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsEnname() {
        return goodsEnname;
    }

    public void setGoodsEnname(String goodsEnname) {
        this.goodsEnname = goodsEnname;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getOrginCountry() {
        return orginCountry;
    }

    public void setOrginCountry(String orginCountry) {
        this.orginCountry = orginCountry;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }


    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public double getGoodsWeight() {
        return goodsWeight;
    }

    public void setGoodsWeight(double goodsWeight) {
        this.goodsWeight = goodsWeight;
    }

    public double getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(double totalWeight) {
        this.totalWeight = totalWeight;
    }

    public double getPricekg() {
        return pricekg;
    }

    public void setPricekg(double pricekg) {
        this.pricekg = pricekg;
    }

    public double getPriceGoods() {
        return priceGoods;
    }

    public void setPriceGoods(double priceGoods) {
        this.priceGoods = priceGoods;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    @Override
    public String toString() {
        return "ComGoodsVO{" +
                "userNo='" + userNo + '\'' +
                ", serialNo='" + serialNo + '\'' +
                ", customerGoodsId='" + customerGoodsId + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsEnname='" + goodsEnname + '\'' +
                ", brand='" + brand + '\'' +
                ", specs='" + specs + '\'' +
                ", orginCountry='" + orginCountry + '\'' +
                ", unit='" + unit + '\'' +
                ", goodsWeight=" + goodsWeight +
                ", totalWeight=" + totalWeight +
                ", pricekg=" + pricekg +
                ", priceGoods=" + priceGoods +
                ", currency='" + currency + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ComGoodsVO that = (ComGoodsVO) o;
        return Double.compare(that.goodsWeight, goodsWeight) == 0 &&
                Double.compare(that.totalWeight, totalWeight) == 0 &&
                Double.compare(that.pricekg, pricekg) == 0 &&
                Double.compare(that.priceGoods, priceGoods) == 0 &&
                Objects.equals(userNo, that.userNo) &&
                Objects.equals(serialNo, that.serialNo) &&
                Objects.equals(customerGoodsId, that.customerGoodsId) &&
                Objects.equals(goodsName, that.goodsName) &&
                Objects.equals(goodsEnname, that.goodsEnname) &&
                Objects.equals(brand, that.brand) &&
                Objects.equals(specs, that.specs) &&
                Objects.equals(orginCountry, that.orginCountry) &&
                Objects.equals(unit, that.unit) &&
                Objects.equals(currency, that.currency);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userNo, serialNo, customerGoodsId, goodsName, goodsEnname, brand, specs, orginCountry, unit, goodsWeight, totalWeight, pricekg, priceGoods, currency);
    }
}
